package com.vito.framework.system.role.service;

import com.vito.framework.base.exception.CommonException;
import com.vito.framework.base.service.BaseService;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;

import java.util.List;
import java.util.Map;

public interface RoleService extends BaseService<RoleBean> {

	public List<RoleBean> getRoleList(Map<String, Object> paramMap) throws CommonException;

	public List<MenuBean>  getMenuByRole(Map<String, Object> paramMap) throws CommonException;
	
	public void editRole(RoleBean role)throws CommonException;
	
	public void addRole(RoleBean role)throws CommonException;
	
	public void deleteRole(Map<String, Object> paramMap)throws CommonException;
	//为添加操作时候，做的显示菜单查询
	public List<MenuBean>  getRoleMenuForAddList(Map<String, Object> paramMap) throws CommonException;

	public void roleMenuAuthorizat(RoleBean roleBean)throws CommonException;
}
